package com.kevin.himly.account.from.client;

import org.dromara.hmily.annotation.Hmily;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;

/**
 * value 是调用微服务的名称，也就是在eureka注册中心里面的微服务的名称
 */
@FeignClient(value = "account-to")
public interface AccountClient {

    @Hmily
    @RequestMapping("/account/{id}/{transMoney}")
    String account(@PathVariable("id") Long id,
                   @PathVariable("transMoney") BigDecimal transMoney);
}